import machine , os
from machine import Pin
pCS=Pin(2)
pMOSI=Pin(23)
pSCK=Pin(18)
pMISO=Pin(19)

sd = machine.SDCard(slot=2,sck=pSCK,mosi=pMOSI,miso=pMISO,cs=pCS)
os.mount(sd,"/sd")  # mount
os.listdir("/sd")    # list directory contents
